<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>{{ operationclass.class2 }} </title>

    <!-- Bootstrap -->
    <link href="../../static/css/bootstrap.min.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
      <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <style type="text/css">
	ul.nav-pills{
		width: 200px;
	}
    ul.nav-pills.affix{
        top: 15px; /* Set the top position of pinned element */
    }
	#lists ul li{
		padding: 5px;
	}
</style>

</head>
<body>
<div class="container">
    <div class="jumbotron" >
        <div class="container">
            <h3>{{ operationclass.class2 }}</h3>
{#            手术说明#}
            <p>{{ operationclass.introduce }}</p>
        </div>
    </div>
   <div class="col-xs-3" id="myScrollspy">
            <ul class="nav nav-pills nav-stacked" data-spy="affix" data-offset-top="125">
                <li class="active"><a href="">说明 </a></li>
                {% for foo in operationtypes %}
                    <li><a href={{ '#'+(foo.id | string)}}>{{ foo.operation_name }}</a> </li>
                {% endfor %}
            </ul>
        </div>
    <div class="col-xs-9" id="lists">
        {% for foo in operationtypes %}
            <h3 id={{ foo.id | string }}>{{ foo.operation_name }} </h3>
            <h4 style="color: #5cb85c;">手术介绍</h4>
            <p>{{ foo.operation_explain }}</p>
            <h4 style="color: #5cb85c;">术后处理</h4>
            <p>{{ foo.operation_after }}</p>
            <h4 style="color: #5cb85c;">西医治疗法</h4>
            <p>{{ foo.operation_west }}</p>
            <h5 style="color: #5cb85c;">中医治疗</h5>
            <p >{{ foo.operation_china }}</p>
            <br>
        {% endfor %}
    </div>
</div>

<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="../../static/js/jquery-3.1.1.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="../../static/js/bootstrap.min.js"></script>
</body>
</html>
